package com.dingtao.common.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;

import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class SearchResult {

    @JSONField(name = "code")
    public int code;
    @JSONField(name = "data")
    public DataDTO data;
    @JSONField(name = "msg")
    public String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @NoArgsConstructor
    @Data
    public static class DataDTO {
        @JSONField(name = "result")
        public List<ResultDTO> result;
        @JSONField(name = "recommend")
        public List<ResultDTO> recommend;

        @NoArgsConstructor
        @Data
        public static class ResultDTO {
            @JSONField(name = "id")
            private long id;
            @JSONField(name = "autoId")
            private int autoId;
            @JSONField(name = "nickName")
            private String nickName;
            @JSONField(name = "gender")
            private Object gender;
            @JSONField(name = "mobile")
            private Object mobile;
            @JSONField(name = "serviceLevel")
            private int serviceLevel;
            @JSONField(name = "imgUrl")
            private String imgUrl;
            @JSONField(name = "birthday")
            private Object birthday;
            @JSONField(name = "area")
            private Object area;
            @JSONField(name = "sign")
            private Object sign;
            @JSONField(name = "job")
            private Object job;
            @JSONField(name = "height")
            private Object height;
            @JSONField(name = "follow")
            private boolean follow;
            @JSONField(name = "balance")
            private Object balance;
            @JSONField(name = "albums")
            private Object albums;
            @JSONField(name = "follower")
            private int follower;
            @JSONField(name = "favorites")
            private Object favorites;
            @JSONField(name = "visitor")
            private Object visitor;
            @JSONField(name = "vip")
            private boolean vip;
        }
    }
}
